package com.nagarro.inventory;

/**
 * Represents raw items. Extends Item.
 * Final Cost for raw item includes
 * 12.5% tax.
 * @author uditverma
 *
 */
public class RawItem extends Item {

	/* Calculate the final cost by adding 12.5% tax */
	@Override
	public double getTotal(final int quantity) {
		double cost = this.getCost(quantity);
		cost = cost + this.getTax(cost);
		/* Calculate Tax */
		this.setTax(cost - this.getCost(quantity));
		return cost;
	}
}
